//
//  LGDetailCollectionViewCell.m
//  LuxuryGoods
//
//  Created by 刘星辰 on 2018/5/28.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "LGDetailCollectionViewCell.h"
#import "LGGoodsModel.h"

@implementation LGDetailCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setGoodCellWithGoodModle:(LGGoodsModel *)model
{
    [self.imageView yy_setImageWithURL:[NSURL URLWithString:model.goods_img] options:YYWebImageOptionProgressive];
    
    self.priceLab.text = model.price;
    
    self.discountsLab.text = model.original_cost;
    
    self.discountsSign.hidden = [model.is_sales boolValue];
    
    self.byStagesSign.hidden = [model.is_credit boolValue];
    
    self.detailLab.text = model.quality_name;
}


@end
